
<!DOCTYPE html>
<html>

<head>
   
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--360浏览器优先以webkit内核解析-->


<title>添加模板</title>

<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
 <link href="__STATIC__/layout/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>
       .radio-inline input[type=radio] {
            margin-top: 4px
        }

        .note-editable {
            height: 150px
        }

    </style>

</head>

<body class="white-bg" style="padding: 3px;font-size: 12px">
    <div class="page-heade">
       <h2 class="title_color text-center">添加模板</h2>
    </div>
    <form action="" class="form-inline" id="form1">
        <table class="table table-bordered bud_hei text-center">
            <tr>
                <td style="width: 20%">作者 :</td>
                <td class="text-left">
                   <a href="javascript:;">蔡启豪</a>
                </td>
            </tr>
            <tr>
               <td>是否为公开模板 <span class="colorRed">*</span>  </td>
               <td class="text-left">
                <label class="radio-inline" for="is_open">
                    <input type="radio" name="hideOpen" checked id="is_open">是
                </label>
                 <label class="radio-inline" for="is_hide">
                    <input type="radio" name="hideOpen" id="is_hide">否
                </label>
              </td>
            </tr>
            <tr>
                 <td>模板标题 <span class="colorRed">*</span>  </td>
                <td class="text-left"><input type="text" name="" class="form-control"></td>
            </tr>
            <tr>
                <td>接收部门(接收顺序为由左至右)</td>
                <td class="text-left">
                    <div class="input-group">
                            <input id="area_id" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>
<br>
                    <p>温馨提醒：如果接收部门有2个或者2个以上，建议您手填联想出部门(部门的名字请参照"选择"里的部门名称)。接收部门中不能有申请人所在部门。</p>
                </td>
            </tr>
            <tr>
                <td></td>
                <td class="text-left">
                      <div class="duoxuan" id="renyuan">
                                            </div>

                </td>
            </tr>
            <tr>
                <td>抄送人</td>
                <td class="text-left">
                      <div class="input-group">
                            <input id="area_id" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>

                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                     <div class="duoxuan" id="renyuan">
                                            </div>

                </td>
            </tr>
              <tr>
                <td>抄送部门</td>
                <td class="text-left">
                       <div class="input-group">
                            <input id="area_id" type="text" placeholder="请输入关键字或空格查询"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;"  id="select_area" class="btn btn-primary btn-sm">选择</a>

                </td>
            </tr>
            <tr>
                <td></td>
                <td class="text-left">  <div class="duoxuan" id="renyuan">
                                            </div>
                </td>
            </tr>
            <tr class="info">
                <td colspan="2" class="font-bold">模版内容如下</td>
            </tr>
            <tr>
                <td colspan="2" class="text-left">
                     <div class="ibox float-e-margins" style="margin-bottom: 0">
                        <div class="ibox-content no-padding">

                            <div class="summernote" id="info">
                                                            </div>

                        </div>
                    </div>
                </td>
            </tr>
            <tr>
             <td colspan="2" class="text-left">温馨提醒：本编辑器不支持复杂表单提交，复杂表单请以附件形式提交</td>
            </tr>
        </table>
        <div class="padding-10 text-center"><button class="btn btn-primary" type="submit">提交</button><span class="lr_5"></span><button class="btn btn-warning" type="button">重置</button></div>
    </form>
  
    
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        })
    })
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
   <script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>
   <script src="__STATIC__/layout/js/plugins/summernote/summernote.min.js"></script>
<script src="__STATIC__/layout/js/plugins/summernote/summernote-zh-CN.js"></script>

<script>
    $(document).ready(function () {
        $('.summernote').summernote({
            lang: 'zh-CN'
        });
    });

  function back(){
    history.go(-1);
  }
  var jieshou = $("#jieshou");
  var chaoSongMan =$("#chaoSongMan");
  var chaoSongDepartment= $("#chaoSongDepartment");
 sousuo(jieshou);
 sousuo(chaoSongMan);
 sousuo(chaoSongDepartment);
       function sousuo(id){
            id.bsSuggest({
            allowNoKeyword: false, //是否允许无关键字时请求数据
            multiWord: true, //以分隔符号分割的多关键字支持
            separator: ",", //多关键字支持时的分隔符，默认为空格
            getDataMethod: "url", //获取数据的方式，总是从 URL 获取
            url: 'http://unionsug.baidu.com/su?p=3&t=' + (new Date()).getTime() + '&wd=',
            /*优先从url ajax 请求 json 帮助数据，注意最后一个参数为关键字请求参数*/
            jsonp: 'cb',
            /*如果从 url 获取数据，并且需要跨域，则该参数必须设置*/
            processData: function (json) { // url 获取数据时，对数据的处理，作为 getData 的回调函数
                var i, len, data = {
                    value: []
                };
                if (!json || !json.s || json.s.length === 0) {
                    return false;
                }

                // console.log(json);
                len = json.s.length;

                jsonStr = "{'value':[";
                for (i = 0; i < len; i++) {
                    data.value.push({
                        word: json.s[i]
                    });
                }
                data.defaults = 'baidu';

                //字符串转化为 js 对象
                return data;
            }
        });

          }
</script>
</body>

</html>